export default ( http ) => ({
	index (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/index',
			params: query
		})
	},
	login (data = {}) {
		return http.request({
			method: 'POST',
			url: '/login',
			data
		})
	},
	layout () {
		return http.request({
			method: 'GET',
			url: '/layout'
		})
	},
	myFavorite (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/my_favorite',
			params:query
		})
	},
	delFavorite (data = {}) {
		return http.request({
			method: 'POST',
			url: '/member/del_favorite',
			data
		})
	},
	wechatBind (data = {}) {
		return http.request({
			method: 'POST',
			url: '/member/wechat_bind',
			data
		})
	},
	myBalance (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/my_balance',
			params:query
		})
	},
	mySearchs (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/my_searchs',
			params: query
		})
	},
	claerMySearchs (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/claer_my_searchs',
			params: query
		})
	},
	myRefundList (query = {}) {
		return http.request({
			method: 'GET',
			url: '/member/my_refund_list',
			params:query
		})
	},
})